package com.ruoyi.traffic.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 硬件设备信息对象 traffic_hardware_info
 * 
 * @author lzh
 * @date 2025-03-16
 */
public class TrafficHardwareInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 交通硬件名称 */
    @Excel(name = "交通硬件名称")
    private String hardwareName;

    /** 交通硬件类型（摄像头、红绿灯） */
    @Excel(name = "交通硬件类型", readConverterExp = "摄=像头、红绿灯")
    private Integer hardwareType;

    /** 硬件服务（host以及port） */
    @Excel(name = "硬件服务", readConverterExp = "h=ost以及port")
    private String hardwareUrl;

    /** 状态（0=正常，1=停用） */
    @Excel(name = "状态", readConverterExp = "0==正常，1=停用")
    private Integer status;

    /** $column.columnComment */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setHardwareName(String hardwareName) 
    {
        this.hardwareName = hardwareName;
    }

    public String getHardwareName() 
    {
        return hardwareName;
    }

    public void setHardwareType(Integer hardwareType) 
    {
        this.hardwareType = hardwareType;
    }

    public Integer getHardwareType() 
    {
        return hardwareType;
    }

    public void setHardwareUrl(String hardwareUrl) 
    {
        this.hardwareUrl = hardwareUrl;
    }

    public String getHardwareUrl() 
    {
        return hardwareUrl;
    }

    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("hardwareName", getHardwareName())
            .append("hardwareType", getHardwareType())
            .append("hardwareUrl", getHardwareUrl())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
